package vue;

import java.awt.Rectangle;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *Cette classe rend la vue en thread
 * @author flo
 */
public class ThreadVue extends Thread {
    
    private Rectangle r;
    
    public ThreadVue(){
        this.r=new Rectangle();
    }
    
    public ThreadVue(Rectangle r){
        this.r=r;
    }
    
    @Override 
    public void run(){
        try {
            Fenetre f = new Fenetre(r);
        } catch (SQLException ex) {
            Logger.getLogger(ThreadVue.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
